-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup #116
Cleanup #116
Conversation
check=True, capture_output=True, text=True) | ||
commit_date = subprocess.run( | ||
["git", "show", "-s", "--format=%as"], check=True, capture_output=True, text=True | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind much, but personally I find the new version harder to read than the old :-)
res = subprocess.run(["git", "diff-index", "--quiet", "HEAD", "--"]) | ||
res = subprocess.run( | ||
["git", "diff-index", "--quiet", "HEAD", "--"], check=False | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you using to format the code? I just tried black
and it doesn't touch is_git_clean
for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used black, sorry, I didn't really mean to format everything again. Note that here I also added check=False
, which might make the difference.
* dev/releases/utils.py: move GitHub specific code to new file so that one can use the utils code without having the "github" python package installed. * Rename release_notes.readme.md -> README.release_notes.md * use `from utils import error, notice` * New script for generating release notes * Tweak dev/releases/create_stable_branch.py
The 'tee' and subshell combo ate the exit code. Also get rid of the 'dev/log' subdirectory.
... so that one can use the utils code without having the "github" python package installed.
1b57e75
to
96e0ad4
Compare
Some cleanups, there's one fixme, which is that in the current line
dev/releases/update_website.py:200:
there's no function named
extract_tarball
in any of these scripts, so this line would fail if executed. I haven't tested these changes at all.